<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>{$tituloSite}</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="templates/themes/blog_default/default.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>

        <div class="toptop"></div>

        <div class="top">
            <div class="topcenter">
                <a href="index.php"><img src="templates/themes/blog_default/logo.gif" /></a>
            </div>
        </div>

        <div class="centro">

            <div class="esquerda">
                <div id="menu">
                    <ul>
                        <li>
                            <h2>Postagens</h2>
                            <ul>
                                {section name=i loop=$menupost}
                                <li><a href="do.class.php?action=LerPost&idPost={$menuidpost[i]}">{$menupost[i]}</a></li>
                                {/section}
                            </ul>
                        </li>
                        <li>
                            <h2>Indicados</h2>
                            <ul>
                                {section name=i loop=$menuoff}
                                <li>{$menuoff[i]}</li>
                                {/section}
                            </ul>
                        </li>
                        <li>
                            <h2>Recursos do Site</h2>
                            <ul>                                
                                {section name=i loop=$menuon}
                                <li>{$menuon[i]}</li>
                                {/section}
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="direita">
                <br/>
                <!-- abre a sessão do loop -->
                {section name=i loop=$titulo}

                <div class="post">
                    <h1 class="title">{$titulo[i]}</h1>
                    <div class="mensagem">
                    Postado em {$dataCriacao[i]} <a href="http://sean-pollock.com">por {$author[i]}</a>
                            {if $logado}
                            | <a href="do.class.php?action=EdicaoPost&idPost={$idPost[i]}">Editar Post</a>
                            {/if}                    
                    </div>
                    {$conteudo[i]}
                </div>
                <hr />
                {/section}

                {if $proximaPagina > -1}
                <a href="do.class.php?action=PegarPosts&nopagina={$proximaPagina}">Postagens Antigas</a>
                {/if}
                {if $paginaAnterior > 0}
                <a href="do.class.php?action=PegarPosts&nopagina={$paginaAnterior}">Novas Postagens</a>
                {/if}
            </div>
        </div>
        <div class="bottom">
            Copyright JumboCms by Fabr&iacute;cio S Costa - Todos os Direitos Reservados<br />
            Template by Fabr&iacute;cio S Costa
        </div>
    </body>
</html>